<?php
/**
 * Description: common controller
 *
 * @package    : IKYOCOMBaseController
 * @copyright  : 2014 IKYU Japan
 * @author     : nguyenpx
 * @created    : 2014-05-19
 * @updated    : 2014-05-19 - nguyenpx - add comments
 * @version    : 1.0
 * @exception  :
 */

//app controller
App::uses('AppController', 'Controller');

//database tranaction
App::uses('IKYZCOMDatabaseTransaction', 'Controller');

abstract class QL_BaseController extends AppController {

    /** Action Index
     **/
    public function index() {
        $this->tienXuLy();
        $this->xuLy();
        $this->hauXuLy();
    }
	
	public function qlhethang()
	{
		$this->xuLy('QLhethang');
	}
	
	public function qladmin()
	{
		$this->xuLy('QLadmin');
	}
	
    // Tien xu ly
    abstract function tienXuLy();

    // xu ly
    abstract function xuLy();

    // Hau xu ly
    abstract function hauXuLy();

}
